package inet.db.tennis;

import java.math.BigDecimal;
import java.sql.Timestamp;

public class TennisCategory implements Comparable{
	private BigDecimal id;
	private String name;
	private int type; //0 = Đơn nam, 1= đơn nữ, 2 = đôi nam, 3 = đôi nữ, 4 = đôi nam nữ
	private Timestamp genDate;
	
	//Dung de sap xep Vector cac object Champion
    //Collections.sort(Vector e);
    public int compareTo(Object category) {
    	TennisCategory e = (TennisCategory) category;

        return this.getName().compareToIgnoreCase(e.getName());
    }
    
	public BigDecimal getId() {
		return id;
	}
	public void setId(BigDecimal id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public Timestamp getGenDate() {
		return genDate;
	}
	public void setGenDate(Timestamp genDate) {
		this.genDate = genDate;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
